<template>
  <div id="app" class="has-topbar has-bottombar">
    <header-download-app v-if="!isJudge"/>
    <!-- <transition name="forward"> -->
    <router-view/>
    <!-- </transition> -->
  </div>
</template>

<script>
import headerDownloadApp from "./components/headerDownloadApp";

export default {
  name: "App",
  data() {
    return {
      isJudge: window.Judge
    };
  },
  components: {
    headerDownloadApp
  },
  mounted() {
    // if (isWeixin()) {
    //   // alert("app Wx");
    //   Toast({
    //     message: "建议浏览器打开",
    //     duration: 3000
    //   });
    // }
  }
};
</script>

<style lang="stylus" scoped>
#app {
  height: 100%;
  background: #e8e8e8;

  .forward-enter-active, .forward-leave-active {
    position: absolute;
    left: 0;
    top: 0;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
    z-index: 0;
  }

  .forward-leave {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  .forward-leave-to {
    -webkit-transform: translate3d(-100%, 0, 0);
    -moz-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }

  .forward-enter {
    -webkit-transform: translate3d(100%, 0, 0);
    -moz-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
  }

  .forward-enter-to {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
</style>
